package cn.tannn.tgateway;

import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 *  Gateway plugin chain. ( plugin 执行链
 * @author <a href="https://t.tannn.cn/">tan</a>
 * @date 2024/5/30 下午4:03
 */
public interface GatewayPluginChain {

    /**
     *  处理器
     * @param exchange {@link ServerWebExchange}
     * @return {@link Mono}
     */
    Mono<Void> handle(ServerWebExchange exchange);
}
